<template>
<div class>
  <head title="Settings"></head>
  <div class="wrapper">
    <div class="locationBox" @click="gonext('root:app/user/address/address.js')">
      <text class="meth_title">Delivery address</text>
      <div class="meth_right">
        <text class="rightIcon">&#xe6a1;</text>
      </div>
    </div>
    <!-- <div class="locationBox row jbew atop" @click="gonext('root:app/user/address/return.js')">
      <text class="meth_title">return address</text>
      <text class="rightIcon">&#xe6a1;</text>
    </div> -->
    <div class="locationBox row jbew atop" @click="gonext('root:app/user/setting/account.js')">
      <text class="meth_title">Account security</text>
      <text class="rightIcon">&#xe6a1;</text>
    </div>
    <!-- <text class="btn" @click="logout">Sign out</text> -->
  </div>
  <div class="maskClack" @click="e=>e.stopPropagation()" v-if="isLoading">
    <floading class="indicator" color="#303030"></floading>
  </div>
</div>
</template>

<script>
const navigator = weex.requireModule("navigator");
export default {
  methods: {
    logout() {
      var pref = weex.requireModule("storage");
      pref.removeItem("users_id");

      const logOutBroad = new BroadcastChannel("logOut");
      logOutBroad.postMessage("33");
      this.back();
    },
    gonext(url, parmar) {
      this.push(url, parmar);
    }
  }
};
</script>

<style scoped>
.wrapper {
  background-color: #f2f2f2;
}

.locationBox {
  width: 750px;
  /* border-bottom-style: solid;
		border-bottom-color: #e6e6e6;
		border-bottom-width: 2px; */
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 104px;
  padding: 0 32px;
  margin-bottom: 20px;
  background-color: #ffffff;
}
.locationBox:active {
  background-color: #f2f2f2;
}

.meth_title {
  color: #323232;
  font-size: 30px;
  flex: 1;
}

.meth_right {
  flex: 1;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.cityName {
  margin-right: 30px;
  font-size: 28px;
  color: #999999;
  flex: 1;
}

.rightIcon {
  font-family: iconfont;
  font-size: 26px;
  color: #999;
}

.btn {
  width: 686px;
  left: 32px;
  position: fixed;
  bottom: 30px;
  height: 80px;
  line-height: 80px;
  border-radius: 8px;
  background-color: #303030;
  color: #fff;
  text-align: center;
  font-size: 30px;
}
.btn:active {
  background-color: #000;
}
</style>
